package cn.edu.sdjzu.entity.authority;

import lombok.*;

import java.io.Serializable;

@ToString
@Setter
@Getter
@NoArgsConstructor
//@AllArgsConstructor
public class Permission implements Comparable<Permission>, Serializable {
	private Integer id;
	private String description;
	private String url;
	private String no;
	private String remarks;
	//本资源属于的角色
	private Role role;

	public Permission(Integer id, String description, String url, String no, Role role) {
		this.id = id;
		this.description = description;
		this.url = url;
		this.no = no;
		this.remarks = remarks;
		this.role = role;
	}

	@Override
	public int compareTo(Permission o) {
		// TODO Auto-generated method stub
		return this.id - o.id;
	}
}
